
from odoo import api, models, fields


class LibraryMember(models.Model):
    _name = 'library.member'
    _inherits = {'res.partner': 'partner_id'}
    partner_id = fields.Many2one('res.partner', ondelete='cascade')

    date_start = fields.Date('开始时间')
    date_end = fields.Date('到期时间')
    member_number = fields.Char('会员编号')
    date_of_birth = fields.Date('出生日期')

